package com.ddrj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ddrj.entity.DiaryEntity;

@Mapper
public interface DiaryMapper extends BaseMapper<DiaryEntity>{

	@Select("select * from dd_diary where recommend = 1;")
	List<DiaryEntity> recomDiaryLlist();

	@Select("select * from dd_diary order by add_time limit 8 ;")
	List<DiaryEntity> newDiaryLlist();

}
